import {
    HTTP,
} from "@/plugins/axios";

export const GetContestList= data => HTTP(`/admin/contest`,data,"GET");

export const GetContestListById= data => HTTP(`/admin/search/contest/${data.search}`,data.page,"GET");

export const GetContestListByName= data => HTTP(`/admin/search/contest/name/${data.search}`,data,"GET");

export const AddContestList= data => HTTP(`/admin/publish/contest`,data,"POST");

export const UpdateContestList= data => HTTP(`/admin/update/contest`,data,"PUT");

export const DeleteContestList= data => HTTP(`/admin/delete/contest/${data}`,data,"DELETE");

export const UploadFile= data => HTTP(`/public/upload/file`,data,"POST");

export const GetJudgesList= data => HTTP(`/admin/search/role_id`,data,"GET");

export const UpdateJudgesList = data => HTTP(`/admin/work_score/add_user_id`,data,"POST");